package com.lzw.mapper;

import com.lzw.bean.Menu;
import com.lzw.bean.MenuNode;
import com.lzw.common.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by 林志伟 on 2017/5/11.
 */

@Mapper
@Repository
public interface MenuNodeMapper extends BaseMapper<MenuNode> {

    public int insertAll(List<MenuNode> menuNodes);

    public int deleteOther(@Param("menu_id") int menu_id,@Param("node_ids") int[] node_ids);

    public MenuNode findByMenuIdNodeId(@Param("menu_id")int menu_id,@Param("node_id")int node_id);
}
